package com.my.mall.client.shippingAddress.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.my.mall.client.shippingAddress.vo.ShippingAddressClientVo;

public interface ShippingAddressClientDao {

	List<ShippingAddressClientVo> selectShippingAddressList(@Param("userId") int userId);

	int update(@Param("id") int id, @Param("isDefault") int isDefault, @Param("consignee") String consignee,
			@Param("mobile") String mobile, @Param("zipCode") String zipCode,
			@Param("provinceName") String provinceName, @Param("cityName") String cityName,
			@Param("districtName") String districtName, @Param("streetName") String streetName,
			@Param("address") String address);

	int save(@Param("userId") int userId, @Param("isDefault") int isDefault, @Param("consignee") String consignee,
			@Param("mobile") String mobile, @Param("zipCode") String zipCode,
			@Param("provinceName") String provinceName, @Param("cityName") String cityName,
			@Param("districtName") String districtName, @Param("streetName") String streetName,
			@Param("address") String address);

	int del(int id);
	
	ShippingAddressClientVo getShippingAddress(@Param("id") int id);
}